<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg bgystz">
<div class="wrapper wrapper-content animated fadeInRight ibox-content bgys">
    <form class="form-horizontal m" id="form-assume-edit" th:object="${assume}">
        <input id="id" name="id" th:field="*{id}" type="hidden">
        <input id="pointId" name="pointId" th:field="*{pointId}"  type="hidden">
        <input id="basicsId" name="basicsId" th:field="*{basicsId}"  type="hidden">
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电价峰段：</label>
                <div class="col-sm-8">
                    <input id="fFP" name="fFP" th:field="*{fFP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电价平段：</label>
                <div class="col-sm-8">
                    <input id="fPP" name="fPP" th:field="*{fPP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电价谷段：</label>
                <div class="col-sm-8">
                    <input id="fGP" name="fGP" th:field="*{fGP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3" hidden="true">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电价小计：</label>
                <div class="col-sm-8">
                    <input id="fTotalP" name="fTotalP" th:field="*{fTotalP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电价峰段：</label>
                <div class="col-sm-8">
                    <input id="pFP" name="pFP" th:field="*{pFP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys"><label class="spty">*</label>平水期电价平段：</label>
                <div class="col-sm-8">
                    <input id="pPP" name="pPP" th:field="*{pPP}" class="form-control tx" type="number">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电价谷段：</label>
                <div class="col-sm-8">
                    <input id="pGP" name="pGP" th:field="*{pGP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3" hidden="true">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电价小计：</label>
                <div class="col-sm-8">
                    <input id="pTotalP" name="pTotalP" th:field="*{pTotalP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电价峰段：</label>
                <div class="col-sm-8">
                    <input id="kFP" name="kFP" th:field="*{kFP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电价平段：</label>
                <div class="col-sm-8">
                    <input id="kPP" name="kPP" th:field="*{kPP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电价谷段：</label>
                <div class="col-sm-8">
                    <input id="kGP" name="kGP" th:field="*{kGP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3" hidden="true">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电价小计：</label>
                <div class="col-sm-8">
                    <input id="kTotalP" name="kTotalP" th:field="*{kTotalP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>

        <div class="col-md-12">
            <hr style="height:1px;border:none;border-top:1px solid #555555;"/>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电量峰段：</label>
                <div class="col-sm-8">
                    <input id="fF" name="fF" th:field="*{fF}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电量平段：</label>
                <div class="col-sm-8">
                    <input id="fP" name="fP" th:field="*{fP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电量谷段：</label>
                <div class="col-sm-8">
                    <input id="fG" name="fG" th:field="*{fG}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电量小计：</label>
                <div class="col-sm-8">
                    <input id="fTotal" name="fTotal" th:field="*{fTotal}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电量峰段：</label>
                <div class="col-sm-8">
                    <input id="pF" name="pF" th:field="*{pF}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电量平段：</label>
                <div class="col-sm-8">
                    <input id="pP" name="pP" th:field="*{pP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电量谷段：</label>
                <div class="col-sm-8">
                    <input id="pG" name="pG" th:field="*{pG}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电量小计：</label>
                <div class="col-sm-8">
                    <input id="pTotal" name="pTotal" th:field="*{pTotal}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电量峰段：</label>
                <div class="col-sm-8">
                    <input id="kF" name="kF" th:field="*{kF}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电量平段：</label>
                <div class="col-sm-8">
                    <input id="kP" name="kP" th:field="*{kP}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电量谷段：</label>
                <div class="col-sm-8">
                    <input id="kG" name="kG" th:field="*{kG}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电量小计：</label>
                <div class="col-sm-8">
                    <input id="kTotal" name="kTotal" th:field="*{kTotal}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>


        <div class="col-md-3">
        </div>
        <div class="col-md-3">
        </div>
        <div class="col-md-3">
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">电量合计：</label>
                <div class="col-sm-8">
                    <input id="eleAccountTotal" name="eleAccountTotal" th:field="*{eleAccountTotal}" class="form-control srk"
                           type="number" readonly="true">
                </div>
            </div>
        </div>

        <div class="col-md-12">
            <hr style="height:1px;border:none;border-top:1px solid #555555;"/>
        </div>






        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电费峰段：</label>
                <div class="col-sm-8">
                    <input id="fFM" name="fFM" th:field="*{fFM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电费平段：</label>
                <div class="col-sm-8">
                    <input id="fPM" name="fPM" th:field="*{fPM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电费谷段：</label>
                <div class="col-sm-8">
                    <input id="fGM" name="fGM" th:field="*{fGM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">丰水期电费小计：</label>
                <div class="col-sm-8">
                    <input id="fTotalM" name="fTotalM" th:field="*{fTotalM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电费峰段：</label>
                <div class="col-sm-8">
                    <input id="pFM" name="pFM" th:field="*{pFM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电费平段：</label>
                <div class="col-sm-8">
                    <input id="pPM" name="pPM" th:field="*{pPM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电费谷段：</label>
                <div class="col-sm-8">
                    <input id="pGM" name="pGM" th:field="*{pGM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">平水期电费小计：</label>
                <div class="col-sm-8">
                    <input id="pTotalM" name="pTotalM" th:field="*{pTotalM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电费峰段：</label>
                <div class="col-sm-8">
                    <input id="kFM" name="kFM" th:field="*{kFM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电费平段：</label>
                <div class="col-sm-8">
                    <input id="kPM" name="kPM" th:field="*{kPM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电费谷段：</label>
                <div class="col-sm-8">
                    <input id="kGM" name="kGM" th:field="*{kGM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">枯水期电费小计：</label>
                <div class="col-sm-8">
                    <input id="kTotalM" name="kTotalM" th:field="*{kTotalM}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>

        <div class="col-md-3">
        </div>
        <div class="col-md-3">
        </div>
        <div class="col-md-3">
        </div>

        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">电费合计：</label>
                <div class="col-sm-8">
                    <input id="elePriceTotal" name="elePriceTotal" th:field="*{elePriceTotal}" class="form-control srk"
                           type="number" readonly="true">
                </div>
            </div>
        </div>







        <div class="col-md-12">
            <hr style="height:1px;border:none;border-top:1px solid #555555;"/>
        </div>

        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">基本电费：</label>
                <div class="col-sm-8">
                    <input id="basicsPrice" name="basicsPrice" th:field="*{basicsPrice}"
                           class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">政府性基金及附加：</label>
                <div class="col-sm-8">
                    <input id="jJ" name="jJ" th:field="*{jJ}" class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <!--<div class="col-md-4">-->
        <!--</div>-->
        <!--<div class="col-md-12">-->
        <!--</div>-->

        <div class="col-md-3">
            <div class="form-group">
                <label class="col-sm-4 control-label bgys">合计电费：</label>
                <div class="col-sm-8">
                    <input id="eleTotal" name="eleTotal" th:field="*{eleTotal}"
                           class="form-control srk" type="number" readonly="true">
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <a class="btn btn-success" onclick="submitHandler()">
                <i class="fa fa-hand-peace-o"></i> 计算
            </a>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "service/assume"
    $("#form-assume-edit").validate({
        rules: {
            pPP: {
                required: true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.saveAndRefer(prefix + "/edit", $('#form-assume-edit').serialize());
        }
    }
</script>
</body>
</html>
